package com.example.newsapp.data.compositionLocal

import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.runtime.compositionLocalOf
import androidx.navigation.NavHostController

// 共享NavController
var LocalNavController = compositionLocalOf<NavHostController> {
    error("No NavHostController provided")
}
var LocalNavControllerTab = compositionLocalOf<NavHostController> {
    error("No NavHostController provided")
}
var LocalNavControllerPicture = compositionLocalOf<NavHostController> {
    error("No NavHostController provided")
}